package com.amado.course49AnonymousClass;

import java.io.File;
import java.io.FileFilter;
import java.util.ArrayList;
import java.util.List;

public class S01FileFilter {
	static List<Student> studentList = new ArrayList();

	public static void main(String[] args) {
		File file = new File("D:\\gitCode");
		File[] fileArray = file.listFiles(new FileFilter() {
			@Override
			public boolean accept(File pathname) {
				return pathname.getName().contains("spring");
			}
		});
		for(File tempFile:fileArray) {
			System.out.println(tempFile.getAbsolutePath());
		}
		
	}

}
